<template>
  <div class="main">
    <view class="item">
      <view class="flex justifyBetween alignCenter">
        <view class="bold fz14">您的职业是
          <text>（选填）</text>
        </view>
        <view class="fz14 skip" @click="next">跳过</view>
      </view>
      <view class="desc fz12">填写职业，认识更多有趣的人</view>

      <uv-input placeholder="请输入内容" shape="circle" border="none" :customStyle="inputStyle" v-model="valueDate.industry"></uv-input>
    </view>

    <view class="next flex justifyFlexEnd">
      <uv-button @click="next" :customStyle="nextBtnStyle" text="下一步" shape="circle" color="linear-gradient(to right, rgba(178, 161, 255, 1), rgba(211, 167, 249, 1))"></uv-button>
    </view>
  </div>
</template>

<script setup lang="ts">
import useCounterStore from "@/stores/counter";
const counter = useCounterStore();
const { proxy } = getCurrentInstance();
let props = defineProps(["modelValue"]);
const emit = defineEmits(["update:modelValue", "fatherMethod"]);

const valueDate = computed({
  get() {
    return props.modelValue;
  },
  set(value) {
    emit("update:modelValue", value);
  },
});

let inputStyle = ref({
  backgroundColor: "#F6F6F6",
  padding: "10px 10px",
});

let nextBtnStyle = ref({
  width: "100px",
  boxShadow: "0 2px 8px 2px rgba(182, 159, 254, 0.53)",
});

let next = () => {
  emit("fatherMethod");
};
</script>



<style lang="scss" scoped>
.item {
  text {
    color: #999999;
    font-weight: initial;
  }
  .desc {
    color: #999999;
    padding: 6px 0 20px;
  }
}
.skip {
  color: #009eff;
}
.next {
  margin-right: 10vw;
  margin-top: 10vw;
}
</style>
